package com.cskaoyan.controller.lz_controller;


import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.lzpackage.AddressData;
import com.cskaoyan.bean.params.BaseParam;
import com.cskaoyan.lz_service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/address")
public class AdminAdressController {

    @Autowired
    AddressService addressService;
    @RequestMapping("list")
    public BaseRespVo list(String name, BaseParam param,String userId) {
        AddressData addressData = addressService.query(param, name,userId);
        return BaseRespVo.ok(addressData);
    }
}